﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Animation_Editor
{
    public partial class AnimationName : Form
    {
        public AddToListEventHandler addtolist;

        public AnimationName()
        {
            InitializeComponent();
        }

        //AnimationFrames af = new AnimationFrames();

        private void button1_Click(object sender, EventArgs e)
        {
            //af.SAnimName = textBox1.Text;
        }

        private void textBox1_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyValue.Equals(13) == true)
            {
                //e.KeyCode(DialogResult.OK);
            }
        }


        public delegate void AddToListEventHandler(object sender, AddToListEventHandler e);

        public class AddToListEventArgs : EventArgs
        {
            AnimationFrames animframes;
            internal AnimationFrames Animframes
            {
                get { return animframes; }
                set { animframes = value; }
            }

           // public AddToListEventArgs( af)
           // {
                //this.animframes = af;
           // }
        }
    }
}
